#coding=utf-8

i = 100; a = 0; b = 0; c = 0

for item in range(100,1000):
    a = i // 100
    b = (i - a * 100) // 10
    c = i - a * 100 -b * 10
    if i == (a ** 3 + b ** 3 + c ** 3):
        print("i = " + str(i))

    i = i + 1